package com.yh.patterns.Strategy.task;

/**
 * @Author:云尚
 * @Description:飞行器（抽象类）
 */
public abstract class AirCraft {
    protected FlyBehavior flyBehavior;
    protected TakeOffBehavior takeOffBehavior;

    public void fly() {
        flyBehavior.fly();
    }

    public void takeOff() {
        takeOffBehavior.takeOff();
    }
}
